package android.malware.ransonware.fragment;

import java.util.LinkedList;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

public class FragmentAdapter extends FragmentPagerAdapter {
	private LinkedList<Fragment> fragments;

	public FragmentAdapter(FragmentManager fm, LinkedList<Fragment> fragments) {
		super(fm);
		this.fragments = fragments;
	}

	@Override
	public Fragment getItem(int n) {
		return this.fragments.get(n);
	}

	@Override
	public int getCount() {
		return this.fragments.size();
	}
}
